﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BawangMemo.BackendModels;


namespace BawangMemo.BawangMemoView
{
    public class TestWordInfo : IComparable<TestWordInfo>
    {
        public string word { get; set; }
        public string explain { get; set; }
        public int _id;
        public int ranKey;

        public string getWord()
        {
            return word;
        }

        public string getExplain()
        {
            return explain;
        }

        public void setRanKey(int k)
        {
            ranKey = k;
        }

        public TestWordInfo(int i, string w, string e)
        {
            _id = i;
            word = w;
            explain = e;
            ranKey = i;
        }

        #region IComparable<TestWordInfo> 成员

        public int CompareTo(TestWordInfo other)
        {
            return this.ranKey - other.ranKey;
        }

        #endregion
    }
}
